# Identity

.PHONY:build-identity
build-identity:
	docker build -f ./IdentityService/Dockerfile -t registry.cn-hangzhou.aliyuncs.com/vanzheng/easydapr-identity:latest .

.PHONY:push-identity
push-identity:
	docker push registry.cn-hangzhou.aliyuncs.com/vanzheng/easydapr-identity:latest
	
.PHONY:k8s-apply-identity
k8s-apply-identity:
	kubectl apply -f ./IdentityService/deploy.yaml

.PHONY:k8s-rollout-identity
k8s-rollout-identity:
	kubectl rollout restart deploy/identity-app -n easydapr-system
	

# Inventory 

.PHONY:k8s-apply-inventory
k8s-apply-inventory:
	kubectl apply -f ./InventoryService.Api/deploy.yaml

.PHONY:k8s-rollout-inventory
k8s-rollout-inventory:
	kubectl rollout restart deploy/inventory-app -n easydapr-system

.PHONY:build-inventory
build-inventory:
	docker build -f ./InventoryService.Api/Dockerfile -t registry.cn-hangzhou.aliyuncs.com/vanzheng/easydapr-inventory:1.0.0 .

.PHONY:push-inventory
push-inventory:
	docker push registry.cn-hangzhou.aliyuncs.com/vanzheng/easydapr-inventory:1.0.0
	
# config 

.PHONY:update-config
update-config:
	kubectl apply -f ./config/config.yaml
	
.PHONY:update-ps
update-ps:
	kubectl apply -f ./config/components/pubsub.yaml
	
.PHONY:update-ss
update-ss:
	kubectl apply -f ./config/components/statestore.yaml